#ifndef LOGGER_H
#define LOGGER_H

#include <QtCore/qglobal.h>

#if defined(LOGGER_LIBRARY)
#  define LOGGER_EXPORT __declspec(dllexport)
#else
#  define LOGGER_EXPORT __declspec(dllimport)
#endif

class LOGGER_EXPORT Logger
{
public:
    static void install_logger(int max_log_file_size = 1024 * 1024, QString log_file_name = "debug.log");

private:
    static void log_message_handler(QtMsgType type, const QMessageLogContext &context, const QString &msg);

    static int max_log_file_size;
    static QString log_file_name;
};
#endif // LOGGER_H
